package com.qfedu.edu.exception.handler;

import lombok.Data;

/**
 * @author xiaobobo
 * @title: BesinessException
 * @projectName cd-fy-2401-third-project-parent
 * @description: 这个是咋们的业务异常(可预期的异常)
 * @date 2024/9/23  14:05
 */
@Data
public class BusinessException extends RuntimeException {
    //状态码
    private Integer code;
    //错误的提示信息
    private String msg;
    public BusinessException(Integer code,String msg){
      this.code=code;
      this.msg=msg;
    }

}
